package JavaHomework02;

import java.util.ArrayList;
import java.util.Random;

public class zuoye07 {
	public static void main(String[] args) {
		ArrayList <Integer> all=new ArrayList<Integer>();
		ArrayList <Integer> oushu=new ArrayList<Integer>();
		
		Random r=new Random();
		for(int i=0;i<20;i++){
			int x=r.nextInt(2);
			all.add(x);
			if(x%2==0){
				oushu.add(x);
			}
		}
		System.out.println(all);
		System.out.println(oushu);
	}
	
}

